using HuiLian.Common.Input;
using HuiLian.Service.Platform.ModelParam.Input;
using HuiLian.Common.Output;
using HuiLian.Model.Platform;
using System.Threading.Tasks;

namespace HuiLian.Service.Platform.ModelParam
{
    /// <summary>
    /// 模型参数接口
    /// </summary>
    public interface IModelParamService
    {
        /// <summary>
        /// 获取模型参数信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> GetAsync();

        /// <summary>
        /// 查询模型参数信息
        /// </summary>
        /// <param name="input">分页信息</param>
        /// <returns></returns>
        Task<IResponseOutput> PageAsync(PageInput<ModelParamEntity> input);

        /// <summary>
        /// 添加模型参数信息
        /// </summary>
        /// <param name="input">模型参数信息</param>
        /// <returns></returns>
        Task<IResponseOutput> AddAsync(ModelParamAddInput input);

        /// <summary>
        /// 更新模型参数信息
        /// </summary>
        /// <param name="input">模型参数信息</param>
        /// <returns></returns>
        Task<IResponseOutput> UpdateAsync(ModelParamUpdateInput input);

        /// <summary>
        /// 删除模型参数信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> DeleteAsync(long id);

        /// <summary>
        /// 软删除模型参数信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> SoftDeleteAsync(long id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<IResponseOutput> BatchSoftDeleteAsync(long[] ids);

        /// <summary>
        /// 获取管网健康度的图例
        /// </summary>
        /// <returns></returns>
        Task<IResponseOutput> PipeHealthLegend();
    }
}
